<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <script type="text/javascript" src="js/jquery.validate.js"></script>
    <link href="css/index_work.css" rel="stylesheet">
    <script src="js/jquery-1.8.2.min.js"></script>
    <title>Title</title>
</head>

<body>
  <script>
      $(function () {
          $.post("cate", function (obj) {
              for (var i in obj) {
                  $("#cd").append("<option value='" + obj[i].cid + "'>" + obj[i].cname + "</option>")
              }


          })
      })
  </script>
 <form action="add" method="post">
       电影名称:<input type="text" name="mname"><br>
      剧情介绍: <textarea name="mcon"></textarea ><br>
      电影导演:<input type="text" name="users"><br>
     发行日期:<input type="date" name="mdate"><br>
     电影分类:<select name="cid" id="cd">
        <option value="">请选择</option>
 </select>
     <input type="submit" value="添加">
 </form>
</body>
</html>
